- An interactive tool to visualize energy intensity, measured as energy consumption per dollar of GDP
- Useful for understanding the energy intensity of different countries’ productive processes.
- Allows quick comparisons across countries and over time.
2024-06-05
map<- leaflet(data_2021) %>% addTiles() %>% setView(lat = 10, lng = 0, zoom = 1) %>%
addPolygons(fillColor = ~ mypalette(watt.gdp), stroke = TRUE,
fillOpacity = 0.9, color = "white", weight = 0.3,
label = mytext, labelOptions = labelOptions(style = list("font-weight" = "normal", padding = "3px 8px"), textsize = "13px", direction = "auto")) %>%
addLegend(pal = mypalette, values = ~watt.gdp, opacity = 0.9,
title = "Primary Energy Consumption (kWh/person)", position = "bottomleft")